home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FFFFSSSSEEEETTTTPPPPOOOOSSSS((((3333SSSS)))) FFFFSSSSEEEETTTTPPPPOOOOSSSS((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- fsetpos, fsetpos64, fgetpos, fgetpos64 - reposition a file pointer in a
- stream
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
-
- iiiinnnntttt ffffsssseeeettttppppoooossss ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm,,,, ccccoooonnnnsssstttt ffffppppoooossss____tttt ****ppppoooossss))));;;;
-
- iiiinnnntttt ffffsssseeeettttppppoooossss66664444 ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm,,,, ccccoooonnnnsssstttt ffffppppoooossss66664444____tttt ****ppppoooossss))));;;;
-
- iiiinnnntttt ffffggggeeeettttppppoooossss ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm,,,, ffffppppoooossss____tttt ****ppppoooossss))));;;;
-
- iiiinnnntttt ffffggggeeeettttppppoooossss66664444 ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm,,,, ffffppppoooossss66664444____tttt ****ppppoooossss))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _F_s_e_t_p_o_s and _f_g_e_t_p_o_s save and restore the file position indicated by the
- value of the object pointed at by _p_o_s.
-
- The functions _f_s_e_t_p_o_s_6_4 and _f_g_e_t_p_o_s_6_4 are identical to _f_s_e_t_p_o_s and
- _f_g_e_t_p_o_s respectively, except that they take an _f_p_o_s_6_4__t * as an argument.
- This allows for the specification of a file position that is greater that
- 2 Gigabytes.
-
- A call to _f_g_e_t_p_o_s stores the current value of the file position indicator
- for _s_t_r_e_a_m in the object pointed at by _p_o_s. The information is encoded
- in a format which may only be usable by _f_s_e_t_p_o_s for the repositioning the
- _s_t_r_e_a_m to its position at the time of the call to _f_g_e_t_p_o_s.
-
- _F_s_e_t_p_o_s restores the file position of the _s_t_r_e_a_m to the value encoded in
- the object pointed at by _p_o_s, which must have been set by a previous call
- to _f_g_e_t_p_o_s on the same stream. A successful call to _f_s_e_t_p_o_s clears the
- end-of-file indicator for the stream and undoes any effect of the
- _u_n_g_e_t_c(3S) function on it. After a call to _f_s_e_t_p_o_s, the next operation
- on an update stream may be either input or output.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- lseek(2), fseek(3s), fopen(3S), popen(3S), stdio(3S), ungetc(3S).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If successful, both _f_s_e_t_p_o_s and _f_g_e_t_p_o_s return zero. On failure, they
- return non-zero and set eeeerrrrrrrrnnnnoooo to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-